Optimal. Leaf size=330 \[ \frac {3 a^4 \tanh ^{-1}(\sin (c+d x))}{8 d}-\frac {3 a^2 b^2 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {3 b^4 \tanh ^{-1}(\sin (c+d x))}{128 d}+\frac {4 a^3 b \sec ^5(c+d x)}{5 d}-\frac {4 a b^3 \sec ^5(c+d x)}{5 d}+\frac {4 a b^3 \sec ^7(c+d x)}{7 d}+\frac {3 a^4 \sec (c+d x) \tan (c+d x)}{8 d}-\frac {3 a^2 b^2 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 b^4 \sec (c+d x) \tan (c+d x)}{128 d}+\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}-\frac {a^2 b^2 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {b^4 \sec ^3(c+d x) \tan (c+d x)}{64 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}-\frac {b^4 \sec ^5(c+d x) \tan (c+d x)}{16 d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 330, normalized size of antiderivative = 1.00, number of steps
used = 19, number of rules used = 7, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3169, 3853,
3855, 2686, 30, 2691, 14} \begin {gather*} \frac {3 a^4 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {a^4 \tan (c+d x) \sec ^3(c+d x)}{4 d}+\frac {3 a^4 \tan (c+d x) \sec (c+d x)}{8 d}+\frac {4 a^3 b \sec ^5(c+d x)}{5 d}-\frac {3 a^2 b^2 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {a^2 b^2 \tan (c+d x) \sec ^5(c+d x)}{d}-\frac {a^2 b^2 \tan (c+d x) \sec ^3(c+d x)}{4 d}-\frac {3 a^2 b^2 \tan (c+d x) \sec (c+d x)}{8 d}+\frac {4 a b^3 \sec ^7(c+d x)}{7 d}-\frac {4 a b^3 \sec ^5(c+d x)}{5 d}+\frac {3 b^4 \tanh ^{-1}(\sin (c+d x))}{128 d}+\frac {b^4 \tan ^3(c+d x) \sec ^5(c+d x)}{8 d}-\frac {b^4 \tan (c+d x) \sec ^5(c+d x)}{16 d}+\frac {b^4 \tan (c+d x) \sec ^3(c+d x)}{64 d}+\frac {3 b^4 \tan (c+d x) \sec (c+d x)}{128 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2686
Rule 2691
Rule 3169
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \sec ^9(c+d x) (a \cos (c+d x)+b \sin (c+d x))^4 \, dx &=\int \left (a^4 \sec ^5(c+d x)+4 a^3 b \sec ^5(c+d x) \tan (c+d x)+6 a^2 b^2 \sec ^5(c+d x) \tan ^2(c+d x)+4 a b^3 \sec ^5(c+d x) \tan ^3(c+d x)+b^4 \sec ^5(c+d x) \tan ^4(c+d x)\right ) \, dx\\ &=a^4 \int \sec ^5(c+d x) \, dx+\left (4 a^3 b\right ) \int \sec ^5(c+d x) \tan (c+d x) \, dx+\left (6 a^2 b^2\right ) \int \sec ^5(c+d x) \tan ^2(c+d x) \, dx+\left (4 a b^3\right ) \int \sec ^5(c+d x) \tan ^3(c+d x) \, dx+b^4 \int \sec ^5(c+d x) \tan ^4(c+d x) \, dx\\ &=\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d}+\frac {1}{4} \left (3 a^4\right ) \int \sec ^3(c+d x) \, dx-\left (a^2 b^2\right ) \int \sec ^5(c+d x) \, dx-\frac {1}{8} \left (3 b^4\right ) \int \sec ^5(c+d x) \tan ^2(c+d x) \, dx+\frac {\left (4 a^3 b\right ) \text {Subst}\left (\int x^4 \, dx,x,\sec (c+d x)\right )}{d}+\frac {\left (4 a b^3\right ) \text {Subst}\left (\int x^4 \left (-1+x^2\right ) \, dx,x,\sec (c+d x)\right )}{d}\\ &=\frac {4 a^3 b \sec ^5(c+d x)}{5 d}+\frac {3 a^4 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}-\frac {a^2 b^2 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}-\frac {b^4 \sec ^5(c+d x) \tan (c+d x)}{16 d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d}+\frac {1}{8} \left (3 a^4\right ) \int \sec (c+d x) \, dx-\frac {1}{4} \left (3 a^2 b^2\right ) \int \sec ^3(c+d x) \, dx+\frac {1}{16} b^4 \int \sec ^5(c+d x) \, dx+\frac {\left (4 a b^3\right ) \text {Subst}\left (\int \left (-x^4+x^6\right ) \, dx,x,\sec (c+d x)\right )}{d}\\ &=\frac {3 a^4 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {4 a^3 b \sec ^5(c+d x)}{5 d}-\frac {4 a b^3 \sec ^5(c+d x)}{5 d}+\frac {4 a b^3 \sec ^7(c+d x)}{7 d}+\frac {3 a^4 \sec (c+d x) \tan (c+d x)}{8 d}-\frac {3 a^2 b^2 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}-\frac {a^2 b^2 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {b^4 \sec ^3(c+d x) \tan (c+d x)}{64 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}-\frac {b^4 \sec ^5(c+d x) \tan (c+d x)}{16 d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d}-\frac {1}{8} \left (3 a^2 b^2\right ) \int \sec (c+d x) \, dx+\frac {1}{64} \left (3 b^4\right ) \int \sec ^3(c+d x) \, dx\\ &=\frac {3 a^4 \tanh ^{-1}(\sin (c+d x))}{8 d}-\frac {3 a^2 b^2 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {4 a^3 b \sec ^5(c+d x)}{5 d}-\frac {4 a b^3 \sec ^5(c+d x)}{5 d}+\frac {4 a b^3 \sec ^7(c+d x)}{7 d}+\frac {3 a^4 \sec (c+d x) \tan (c+d x)}{8 d}-\frac {3 a^2 b^2 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 b^4 \sec (c+d x) \tan (c+d x)}{128 d}+\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}-\frac {a^2 b^2 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {b^4 \sec ^3(c+d x) \tan (c+d x)}{64 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}-\frac {b^4 \sec ^5(c+d x) \tan (c+d x)}{16 d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d}+\frac {1}{128} \left (3 b^4\right ) \int \sec (c+d x) \, dx\\ &=\frac {3 a^4 \tanh ^{-1}(\sin (c+d x))}{8 d}-\frac {3 a^2 b^2 \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {3 b^4 \tanh ^{-1}(\sin (c+d x))}{128 d}+\frac {4 a^3 b \sec ^5(c+d x)}{5 d}-\frac {4 a b^3 \sec ^5(c+d x)}{5 d}+\frac {4 a b^3 \sec ^7(c+d x)}{7 d}+\frac {3 a^4 \sec (c+d x) \tan (c+d x)}{8 d}-\frac {3 a^2 b^2 \sec (c+d x) \tan (c+d x)}{8 d}+\frac {3 b^4 \sec (c+d x) \tan (c+d x)}{128 d}+\frac {a^4 \sec ^3(c+d x) \tan (c+d x)}{4 d}-\frac {a^2 b^2 \sec ^3(c+d x) \tan (c+d x)}{4 d}+\frac {b^4 \sec ^3(c+d x) \tan (c+d x)}{64 d}+\frac {a^2 b^2 \sec ^5(c+d x) \tan (c+d x)}{d}-\frac {b^4 \sec ^5(c+d x) \tan (c+d x)}{16 d}+\frac {b^4 \sec ^5(c+d x) \tan ^3(c+d x)}{8 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1732\) vs. \(2(330)=660\).
time = 6.42, size = 1732, normalized size = 5.25 \begin {gather*} \frac {a b \left (42 a^2-17 b^2\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{140 d (a \cos (c+d x)+b \sin (c+d x))^4}-\frac {3 \left (16 a^4-16 a^2 b^2+b^4\right ) \cos ^4(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{128 d (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {3 \left (16 a^4-16 a^2 b^2+b^4\right ) \cos ^4(c+d x) \log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{128 d (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {b^4 \cos ^4(c+d x) (a+b \tan (c+d x))^4}{128 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^8 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (56 a^2 b^2+16 a b^3-7 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{448 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^6 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (560 a^4+896 a^3 b-256 a b^3-35 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{8960 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^4 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (1680 a^4+1344 a^3 b-1680 a^2 b^2-544 a b^3+105 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{8960 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^2 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {a b^3 \cos ^4(c+d x) \sin \left (\frac {1}{2} (c+d x)\right ) (a+b \tan (c+d x))^4}{14 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^7 (a \cos (c+d x)+b \sin (c+d x))^4}-\frac {b^4 \cos ^4(c+d x) (a+b \tan (c+d x))^4}{128 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^8 (a \cos (c+d x)+b \sin (c+d x))^4}-\frac {a b^3 \cos ^4(c+d x) \sin \left (\frac {1}{2} (c+d x)\right ) (a+b \tan (c+d x))^4}{14 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^7 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (-56 a^2 b^2+16 a b^3+7 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{448 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^6 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (-560 a^4+896 a^3 b-256 a b^3+35 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{8960 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^4 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\left (-1680 a^4+1344 a^3 b+1680 a^2 b^2-544 a b^3-105 b^4\right ) \cos ^4(c+d x) (a+b \tan (c+d x))^4}{8960 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (42 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )-17 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{140 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^3 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (42 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )-17 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{140 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (7 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )-2 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{35 d \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )^5 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (-7 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )+2 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{35 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^5 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (-42 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )+17 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{140 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^3 (a \cos (c+d x)+b \sin (c+d x))^4}+\frac {\cos ^4(c+d x) \left (-42 a^3 b \sin \left (\frac {1}{2} (c+d x)\right )+17 a b^3 \sin \left (\frac {1}{2} (c+d x)\right )\right ) (a+b \tan (c+d x))^4}{140 d \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) (a \cos (c+d x)+b \sin (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.42, size = 363, normalized size = 1.10 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 322, normalized size = 0.98 \begin {gather*} -\frac {35 \, b^{4} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{7} - 11 \, \sin \left (d x + c\right )^{5} - 11 \, \sin \left (d x + c\right )^{3} + 3 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{8} - 4 \, \sin \left (d x + c\right )^{6} + 6 \, \sin \left (d x + c\right )^{4} - 4 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 560 \, a^{2} b^{2} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{5} - 8 \, \sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{6} - 3 \, \sin \left (d x + c\right )^{4} + 3 \, \sin \left (d x + c\right )^{2} - 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 560 \, a^{4} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - \frac {7168 \, a^{3} b}{\cos \left (d x + c\right )^{5}} + \frac {1024 \, {\left (7 \, \cos \left (d x + c\right )^{2} - 5\right )} a b^{3}}{\cos \left (d x + c\right )^{7}}}{8960 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.20, size = 214, normalized size = 0.65 \begin {gather*} \frac {105 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )^{8} \log \left (\sin \left (d x + c\right ) + 1\right ) - 105 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )^{8} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 5120 \, a b^{3} \cos \left (d x + c\right ) + 7168 \, {\left (a^{3} b - a b^{3}\right )} \cos \left (d x + c\right )^{3} + 70 \, {\left (3 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )^{6} + 2 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \cos \left (d x + c\right )^{4} + 16 \, b^{4} + 8 \, {\left (16 \, a^{2} b^{2} - 3 \, b^{4}\right )} \cos \left (d x + c\right )^{2}\right )} \sin \left (d x + c\right )}{8960 \, d \cos \left (d x + c\right )^{8}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 706 vs.
\(2 (302) = 604\).
time = 0.60, size = 706, normalized size = 2.14 \begin {gather*} \frac {105 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 105 \, {\left (16 \, a^{4} - 16 \, a^{2} b^{2} + b^{4}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) + \frac {2 \, {\left (2800 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{15} + 1680 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{15} - 105 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{15} - 17920 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{14} - 9520 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} + 22960 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} + 805 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} + 53760 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{12} - 35840 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{12} + 11760 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} - 7280 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} + 11655 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} - 89600 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{10} - 5040 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 17360 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 23485 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 125440 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} - 35840 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} - 5040 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 17360 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 23485 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 111104 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 57344 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 11760 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 7280 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 11655 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 46592 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 7168 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 9520 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 22960 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 805 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 10752 \, a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 8192 \, a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 2800 \, a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1680 \, a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 105 \, b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3584 \, a^{3} b - 1024 \, a b^{3}\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{8}}}{4480 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.40, size = 566, normalized size = 1.72 \begin {gather*} \frac {{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{15}\,\left (\frac {5\,a^4}{4}+\frac {3\,a^2\,b^2}{4}-\frac {3\,b^4}{64}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (-\frac {17\,a^4}{4}+\frac {41\,a^2\,b^2}{4}+\frac {23\,b^4}{64}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}\,\left (-\frac {17\,a^4}{4}+\frac {41\,a^2\,b^2}{4}+\frac {23\,b^4}{64}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (\frac {21\,a^4}{4}-\frac {13\,a^2\,b^2}{4}+\frac {333\,b^4}{64}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,\left (\frac {21\,a^4}{4}-\frac {13\,a^2\,b^2}{4}+\frac {333\,b^4}{64}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,\left (\frac {9\,a^4}{4}+\frac {31\,a^2\,b^2}{4}-\frac {671\,b^4}{64}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,\left (\frac {9\,a^4}{4}+\frac {31\,a^2\,b^2}{4}-\frac {671\,b^4}{64}\right )-\frac {16\,a\,b^3}{35}+\frac {8\,a^3\,b}{5}+\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (\frac {5\,a^4}{4}+\frac {3\,a^2\,b^2}{4}-\frac {3\,b^4}{64}\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}\,\left (16\,a\,b^3-24\,a^3\,b\right )-{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,\left (16\,a\,b^3-56\,a^3\,b\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\left (\frac {104\,a^3\,b}{5}+\frac {16\,a\,b^3}{5}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\left (\frac {128\,a\,b^3}{35}-\frac {24\,a^3\,b}{5}\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,\left (\frac {128\,a\,b^3}{5}-\frac {248\,a^3\,b}{5}\right )-40\,a^3\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-8\,a^3\,b\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{16}-8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{14}+28\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-56\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+70\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-56\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+28\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-8\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}+\frac {\mathrm {atanh}\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\right )\,\left (\frac {3\,a^4}{4}-\frac {3\,a^2\,b^2}{4}+\frac {3\,b^4}{64}\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________